import request from '@/utils/request';
import qs from 'qs';
export function fetch(params) {
  return request({
    url: `/api/legalInfos?${qs.stringify(params)}`
  });
}

export function create(params) {
  return request({
    url: '/api/legalInfos',
    method: 'post',
    data: params
  });
}

export function update(params) {
  return request({
    url: `/api/legalInfos`,
    method: 'put',
    data: params
  });
}

export function remove(params) {
  return request({
    url: `/api/legalInfos/${params}`,
    method: 'delete'
  });
}

export function get(params) {
  return request({
    url: `/api/legalInfos/${params}`,
    method: 'get'
  });
}
